<template>
  	<div id="app">
    	<index></index>
	
  	</div>
	  

</template>

<script>
	import index from "./page/index.vue"
	export default {
		components:{
			index
		},
  name: 'App',
  data() {
	  return {
		//   avatar:"https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
			isFirst:true
		  }
  },
  created() {
		let isLogin =  sessionStorage.getItem("isLogin");
		let userId = sessionStorage.getItem("userId");
		let avatar = sessionStorage.getItem("avatar");
		let token =  sessionStorage.getItem("token");
		let isInsider =  sessionStorage.getItem("isInsider");
		let isAdmin =  sessionStorage.getItem("isAdmin");
		if (isLogin === "true") {
			this.$GLOBAL.isLogin = true
			this.$GLOBAL.userId = userId
			this.$GLOBAL.avatar = avatar
			this.$GLOBAL.token = token
			if (isInsider === "true") {
				this.$GLOBAL.isInsider = true
			}
			if (isAdmin === "true") {
				this.$GLOBAL.isAdmin = true
			}
		}
		
	},
	mounted() {
		let _this=this
		window.onresize = function windowResize() {
		  // 通过捕获系统的onresize事件触发我们需要执行的事件
		  var w = window.innerWidth
		  if(w<1000 && _this.isFirst){
			  _this.isFirst=false
			  _this.$notify({
				  title: '温馨提示',
				  message: ('i', { style: 'color: teal'}, '本网站暂未适配移动端，电脑访问体验更好')
				});
			
		  }
		}
	}
}
</script>
<style>
	body {
		margin: 0;
		padding: 0;
		zoom: 1;
	}
	@font-face {
	    font-style: normal;
	    font-family: 'Harmony_Regular';
	    /*引入HarmonyOS_Sans_SC，目录别搞错*/
	    src: url('./assets/font/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
	}
	
	::-webkit-scrollbar {
		display: none;
	}
	body,td,th,div {
		font-family: 'Harmony_Regular', sans-serif;
		font-weight: 500;
		}
		img{
	    max-width: 100% !important;
	    height: auto !important;
	}
</style>
<style scoped>

 #app{
 	margin: 0;
 	position: relative;
 	/* display: block; */
 	width: 100%;
 	height: 100%;
 	
 	} 
  
</style>
